//
//  ChooseView.m
//  WBBaseProject
//
//  Created by 吴斌 on 2018/3/13.
//  Copyright © 2018年 吴斌. All rights reserved.
//

#import "ChooseView.h"

@implementation ChooseView

- (instancetype)initWithCoder:(NSCoder *)aDecoder{
    if (self = [super initWithCoder:aDecoder]) {
        UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(click:)];
        [self addGestureRecognizer:tap];
    }
    return self;
}

- (void)click:(UIButton *)sender{
    if (self.choose) {
        self.choose(sender);
    }
}

@end
